package com.jingdianjichi.subject.common.enums;

import lombok.Getter;

/**
 * 删除状态枚举
 */
@Getter
public enum isDeletedFlagEnum {
    DELETED(1,"已删除"),
    UN_DELETED(0,"未删除");

    public int code;
    public String desc;
    isDeletedFlagEnum(int code, String desc){
        this.code = code;
        this.desc = desc;
    }
    public static isDeletedFlagEnum getByCode(int codeVal){
        for(isDeletedFlagEnum resultCodeEnum : isDeletedFlagEnum.values()){
            if(resultCodeEnum.code == codeVal){
                 return  resultCodeEnum;
            }
        }
        return null;
    }

}
